package com.yang.service;

import com.yang.mapper.RoleMapper;
import com.yang.pojo.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import java.util.List;

public class RoleServiceImpl implements RoleService {
    @Autowired
    private RoleMapper roleMapper;
    public void setRoleMapper(RoleMapper roleMapper) {
        this.roleMapper = roleMapper;
    }

    public  List<Role> queryAll() {
        return roleMapper.queryAll();
    }
}
